<include file="public:top" username="username"/>
<div class="container">
	<div class="maincontent">
		<h3 class="pull-left">
			<i class="glyphicon glyphicon-book"></i>
			班级动态<small>Class dynamics</small>
		</h3>
		<div class="pull-right addButton">
			<a href="<?php echo Url::moveList();?>">返回动态列表</a>
		</div>
		<div class="clear"></div>
		<div class='hr'></div>
		<div class="row-space">
			<p style="text-align:center;"><strong>{{$list.m_title}}</strong></p>
			<div>
				<strong style="margin-right:20px;">发表时间:{{$list.m_date|date="Y-m-d",###}}</strong>
				<strong style="margin-right:20px;">发表人:{{$list.u_name}}</strong>
				<notempty  name="listcount">
					<strong>评论（{{$listcount}}）</strong>
				</notempty>
			</div>
			<div class="content">{{$list.m_content}}</div>
			<ul class="pager">
			    <notempty name="lastRecord">
	                <li>
	                    <a href="<?php echo Url::moveDetail($lastRecord);?>">上一条</a>
	                </li>
					<span class="pageSpace"></span>
				</notempty>
				<notempty name="nextRecord">
					<li>
					    <a href="<?php echo Url::moveDetail($nextRecord);?>">下一条</a>
					</li>
				</notempty>
			</ul>
			<div class="hr"></div>
			<!----动态留言---->
			<notempty name='isHasReply'>
				<form role="form" action="__URL__/liuyan/mid/{{$_GET['mid']}}" method="post" class="formMargin">
				    <div class="form-group">
				        <label for="lytext">发表留言：</label>
				        <textarea class="form-control" name="lytext" rows="4"  placeholder="留下你的足迹"></textarea>
				    </div>
				    <div class="form-group text-right">
						<input type="submit"  class="btn btn-default" value="提交内容">
					</div>
				 </form>
				 <div class="hr"></div>
			</notempty>
			<!----动态留言---->
			<!----动态展示---->
			<notempty name="listcount">
				<div>
				    <h4><strong>评论:</strong></h4>
				    <div class="hr"></div>
					<foreach name="listzb" item="vo" key="key">
					    <div class="dmessign">
							<div class="dimages" >
							   <img src="__PUBLIC__/photos/s_{{$vo.u_image}}" class="img-rounded img-size"/>
							   <p>{{$vo.u_name}}</p>
							</div>
							<div class="dtime">
								第{{$key+1}}楼  {{$vo.zb_date}}
							</div>	
							<div class="dcontents">
								{{$vo.zb_content}}
							</div>
					    </div>
					    <div class="clear"></div>
					    <div class="hr"></div>
				    </foreach>
				</div>
			</notempty>
			<!----动态展示---->
			<!----分页---->
			<div>
				{{$page}}
			</div>
			<p><a href="__URL__/clear/mId/{{$mid}}">clear</a></p>
		</div>
	</div>
</div>
<include file="public:footer"/>
